﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Emulator">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="3" maxOccurs="3" name="Screen">
          <xs:complexType>
            <xs:attribute name="Orientation" use="required" >
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:enumeration value="Portrait"/>
                  <xs:enumeration value="LandscapeLeft"/>
                  <xs:enumeration value="LandscapeRight"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="Width" type="xs:integer" use="required" />
            <xs:attribute name="Height" type="xs:integer" use="required" />
            <xs:attribute name="RelativeX" type="xs:integer" use="required" />
            <xs:attribute name="RelativeY" type="xs:integer" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="Helper">
          <xs:complexType>
            <xs:attribute name="Ratio" type="xs:integer" use="required" />
            <xs:attribute name="OffsetX" type="xs:decimal" use="required" />
            <xs:attribute name="OffsetY" type="xs:decimal" use="required" />
            <xs:attribute name="OffsetWidth" type="xs:decimal" use="required" />
            <xs:attribute name="OffsetHeight" type="xs:decimal" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="ProcessName" type="xs:string" use="required" />
      <xs:attribute name="Width" type="xs:integer" use="required" />
      <xs:attribute name="Height" type="xs:integer" use="required" />
    </xs:complexType>
  </xs:element>
</xs:schema>